package com.xhwl.data.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhwl.common.dto.cent.sdata.AppVersionDTO;
import com.xhwl.common.dto.cent.sdata.GroupDTO;
import com.xhwl.common.pojo.cent.sdata.AppVersion;

import com.xhwl.common.query.cent.sdata.AppVersionQuery;
import com.xhwl.common.query.cent.sdata.GroupQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author JCccc
 * @Description
 * @Date 2021/7/17 10:32
 */
@Repository
public interface IAppVersionDao extends BaseMapper<AppVersion> {

    /**
     * 获取最新版本信息
     *
     * @param appVersionQuery
     * @return
     */
    AppVersion getNewestVersion(@Param("appVersionQuery") AppVersionQuery appVersionQuery);

    /**
     * 分页查询
     * @param page
     * @param appVersionQuery
     * @return
     */
    Page<AppVersionDTO> getPageList(Page page, @Param("appVersionQuery") AppVersionQuery appVersionQuery);

    /**
     * 不分页
     *
     * @param appVersionQuery
     * @return
     */
    List<AppVersionDTO> getList(@Param("appVersionQuery") AppVersionQuery appVersionQuery);

}
